package demo1;

public class People implements Cloneable{
    public Cash cash=new Cash();

    @Override
    protected Object clone() throws CloneNotSupportedException {
        People tmp=(People) super.clone();
       tmp.cash= (Cash) this.cash.clone();
       return tmp;
    }
}
